import request from '/@/utils/request';

export function useUserApi() {
    return {
        userList: (data: object) => {
            return request({
                url: '/api/system/user/list',
                method: 'post',
                data,
            });
        },

        userDetail: (data: object) => {
            return request({
                url: '/api/system/user/detail',
                method: 'post',
                data,
            });
        },

        editUser: (data: object) => {
            return request({
                url: '/api/system/user/edit',
                method: 'post',
                data,
            });
        },

        deleteUser: (data: object) => {
            return request({
                url: '/api/system/user/delete',
                method: 'post',
                data,
            });
        },
    };
}